#ifndef HAIKUOS_INCLUDE_POSIX_SYS_IPC_H
#define HAIKUOS_INCLUDE_POSIX_SYS_IPC_H

#include <sys/cdefs.h>
#include <sys/types.h>

// Mode bits for msgget(), semget() and shmget()
#define IPC_CREAT 01000 // create key

// TODO: defins
struct ipc_pem {
    key_t key; // IPC identifier
    uid_t uid; // owner's user ID
    gid_t gid; // owner's group ID
    uid_t cuid;// creator's user id
    gid_t cgid;// creator's group id
    mode_t mode;// read/write permission
};

__BEGIN_DECLS
key_t ftok(const char*path, int id);
__END_DECLS

#endif // header file protect